package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.PushPlatformEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘国航
 * @desc
 * @since 2024/6/14 11:22
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_user_relation_push_cid")
public class UserRelationPushCid extends SuperEntity implements Serializable {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 推送平台
     */
    private PushPlatformEnum platform;

    /**
     * cid
     */
    private String cid;

    /**
     * 绑定时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bindTime;

}
